package com.zhongyu.viki.controller;
import com.zhongyu.viki.domain.Demo;
import com.zhongyu.viki.service.DemoService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RestController
@RequestMapping("/demo")
public class DemoController {

    @Resource
    private DemoService demoService;

    @GetMapping("/list1")
    public List<Demo> list(){
        return demoService.list();
    }
}
